Repository navigation
DAOS-20112 object: EC agg must not pass unaggregated data - #19702
Open
liuxuezhao wants to merge 3 commits into
Open
liuxuezhao wants to merge 3 commits into
liuxuezhao wants to merge 3 commits into
Conversation
Collaborator
|
Test stage Unit Test completed with status FAILURE. https://jenkins-3.daos.hpc.amslabs.hpecorp.net//job/daos-stack/job/daos/view/change-requests/job/PR-19702/1/execution/node/929/log |
Collaborator
|
Test stage Unit Test with memcheck completed with status FAILURE. https://jenkins-3.daos.hpc.amslabs.hpecorp.net//job/daos-stack/job/daos/view/change-requests/job/PR-19702/1/execution/node/926/log |
liuxuezhao
force-pushed
the
lxz/ec_agg_stamp_28_pr
branch
from
December 4, 2026 14:21
6d73256 to
92ef64f
Compare
After a restart EC aggregation loaded the timestamp of the last write which needs aggregation from VOS, and skipped the scan if it was not newer than the aggregation epoch. VOS does not record that timestamp since 2.6.0, so zero was loaded and taken as "nothing to aggregate": the aggregation epoch and the EC boundary passed replicas which were not aggregated, and a later rebuild or degraded fetch decoded data from the old parity and newer replicas. EC aggregation does not use that timestamp any more: - container: a timestamp in memory, the current HLC after a restart, so the scan goes on until the epoch passes it; - object: skipped only by vo_max_write, if known; - the keys of an object which passed are not skipped; - migration updates the timestamp of the container. The aggregation epoch only moves over what was scanned: - an epoch range which does not continue the epoch is left to a later round; - a range is void if the pool map changed during the scan, also if the epoch has the same value after the reset; - a scan which finds a replica to be visited again at or below the epoch reports the epoch right below the replica; - a range of a forced scan does not report over its upper bound, as a later range can still find such a replica. In the second and third case the round ends without error and a forced scan is not taken as done. The epoch which a target reports can go back that way. The reporter ignores the lower value as before, but does not log it as an error any more, only a stable epoch going back. Add srv_ec_agg_tests, the unit test of the next commit, to the binaries which are stashed for the unit test stages of CI. Signed-off-by: Xuezhao Liu <xuezhao.liu@hpe.com> Signed-off-by: Wang Shilong <shilong.wang@hpe.com>
srv_ec_agg_tests drives the epoch ranges of a round as cont_ec_aggregate_cb() does: - after a restart the scan is not skipped until the aggregation epoch passes what was written before; - a range which does not continue the epoch is left to a later round, an idle one is done; - a pool map update during the scan voids the range, also with the same epoch value and after a retry of the scan; - a forced scan is not done while the boundary is unknown; - a replica found below the epoch ends the round and is reported; - a forced scan which is retried does not report over it either; - which objects are skipped by the epoch of their latest write. VOS250.1 checks what the iterator gives to the filter callback with VOS_IT_AGG_LAST_WRITE. Signed-off-by: Xuezhao Liu <xuezhao.liu@hpe.com>
Without skipping the keys of an object which passed the object filter, every round walks all the keys of an object which is written all the time. Skip a key by the write timestamp cache, which is in memory, not by the timestamp stored in VOS. The cache does not see a write without DTX, i.e. migration, so the container child keeps the time of the last such write, starting with its own creation, and the cache is only used once the aggregation epoch reached that time. A miss of the cache does not skip the key. Signed-off-by: Xuezhao Liu <xuezhao.liu@hpe.com>
liuxuezhao
force-pushed
the
lxz/ec_agg_stamp_28_pr
branch
from
December 4, 2026 14:57
92ef64f to
ca80630
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Steps for the author:
After all prior steps are complete: